package com.example.demo.mapper;

import com.example.demo.model.History;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface HistoryMapper {
    void addHistory(History history);
    
    List<History> getHistoryByUserId(@Param("userId") Integer userId, 
                                    @Param("offset") Integer offset, 
                                    @Param("limit") Integer limit);
    
    void deleteHistory(@Param("id") Integer id, @Param("userId") Integer userId);
    
    void clearHistory(@Param("userId") Integer userId);
} 